home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-12-17 | 1.7 KB | 73 lines | [TEXT/KAHL] |
- $$Message MM Modeless Dialog, mm:mmModelessDialogObject.cp
- $$File mm:mmModelessDialogObject.cp
- /* mmModelessDialogObject */
- /* $CopyRight$ */
-
- /* File name: mmModelessDialogObject
- Function: Basic modeless dialog object
-
- History: $Date$ Original by $Author$
-
- */
-
- #include "mmCommon$Prototype.name$.h" /* Common */
- #include "Common$Prototype.name$.h" /* Common */
-
-
- /* ======================================================= */
- /* ======================================================= */
-
- void CmmModelessDialog::Init()
- {
-
- inherited::Init();
-
- this->theWindow = nil;
- this->ExitDialog = false;
- /* Expected to be overridden by the window code */
- }
-
- /* ======================================================= */
-
- /* Routine: Moved */
- /* Purpose: We were moved, possibly to another screen and screen depth */
-
- void CmmModelessDialog::Moved(Rect *OldRect,WindowPtr theWindow)/* Moved this window */
- {
- WindowPtr SavePort; /* Place to save the last port */
-
-
- if (this->theWindow == theWindow) /* Only do if the window is us */
- {
- GetPort(&SavePort); /* Save the current port */
- SetPort(theWindow); /* Set the port to my window */
-
-
- SetPort(SavePort); /* Restore the old port */
- }
- }
-
- /* ======================================================= */
-
- void CmmModelessDialog::OpenExtras()
- {
- }
-
- /* ======================================================= */
-
- void CmmModelessDialog::UpdateExtras()
- {
- }
-
- /* ======================================================= */
-
- void CmmModelessDialog::FilterTheHit(short *itemHit,EventRecord *myEvent)
- {
- }
-
- /* ======================================================= */
- /* ======================================================= */
- $$CloseFile
-
-
-